package service

import (
	"context"
	"mldong/api/base"
	dictApi "mldong/api/dict"
	"reflect"
)

type IDictService interface {
	/**
	* 添加字典
	 */
	Save(ctx context.Context, req *dictApi.SaveReq) (res bool, err error)
	/**
	* 修改字典
	 */
	Update(ctx context.Context, req *dictApi.UpdateReq) (res bool, err error)
	/**
	* 删除字典
	 */
	Remove(ctx context.Context, ids []string) (res bool, err error)
	/**
	* 字典详情
	 */
	Detail(ctx context.Context, id string) (res dictApi.DictVO, err error)
	/**
	* 字典分页查询
	 */
	Page(ctx context.Context, req *dictApi.PageReq) (res dictApi.DictPageVO, err error)
	/**
	* 根据字典类型获取字典
	 */
	GetByDictType(ctx context.Context, dictType string) (res []base.LabelValueVO, err error)
}

var DictServiceType = reflect.TypeOf((*IDictService)(nil)).Elem()
